﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SweetSQL.Data;
using System.Linq.Expressions;

namespace SweetSQL.Extensions
{
    public sealed class TableEx<T> : Table<T>
        where T : class, new()
    {
        internal IDatabaseEx DatabaseEx = null;

        public IEnumerable<T> Where(Expression<Func<T, bool>> func)
        {
            return DatabaseEx.Where(this, func);
        }
    }
}
